package cn.wolfcode.wolf2w.test;

import lombok.Getter;
import lombok.Setter;

/**
 * 枚举类
 *  构造器私有
 *  当枚举类定义完成购 示例个数固定
 *  剩余操作和普通类一样
 */
public class MyDate2 {
    public static final MyDate2 DATE1 = new MyDate2("date1", 1L);
    public static final MyDate2 DATE2 = new MyDate2("date2", 2L);
    public static final MyDate2 DATE3 = new MyDate2("date3", 3L);


    @Getter
    @Setter
    private String prefix;
    @Getter
    @Setter
    private Long time;

    public String join(String value) {
        return value;
    }

    //private MyDate(){}

    private MyDate2(String prefix, Long time) {
        this.prefix = prefix;
        this.time = time;
    }
}
